<#import "/spring.ftl" as s/>
<@override name="project">
         ${project.name}
</@override>
<@override name="main">
<div id="milestone_form_div">
    <form id="milestone_form" action="<@s.url '/project/milestone/save'/>" method="post">
        <table art="form" columns="120,*" autoLabel="true" rightAlign="true" colon="true">
        
          <input id="id" name="id" type="hidden" value="${milestone.id}"/>
           <input id="project_id" name="project" type="hidden" value="${project.id}"/>
          <#--<input id="cate_count" name="cate_count" type="text" value=""/>-->
          <input id="counts" name="counts" type="hidden" value="${milestone.counts}"/>
          <input id="owner" name="owner" type="hidden" value="${milestone.owner}"/> 
          <input id="createUser" name="createUser" type="hidden" value="${milestone.createUser}"/>
          <input id="owner_name" name="owner_name" type="hidden" value="${milestone.owner_name}"/>

            <tr>
                <td>
                    <label art='label' for="name" required='true'><@s.message "milestone.view.name"/></label>
                </td>
                <td>
                    <input id="name" name="name" type="text" art="textbox" emptyText="<@s.message "milestone.view.name"/>"
                           required="true" value="${milestone.name}"/>
                </td>
            </tr>
		<!--
            <tr>
              <td>
               <label art='label' for='project_text' required='true'><@s.message "milestone.view.project"/></label>
              </td>
              <td>
                <input id="project_text" name="project_text" type="text" art="combobox" emptyText="<@s.message "milestone.view.project"/>"
                           required="true" value="${milestone.project}"/>
              </td>
            </tr>
		-->
            <tr>
             <td>
               <label art='label' for='starttime' required='true'><@s.message "milestone.view.starttime"/></label>
              </td>
             <td>
              <input id="starttime" name="starttime" selectMode=1 type="text" art="datetimer" maxtime="{duetime}" 
              <#if milestone.starttime??>value="${milestone.starttime?string("yyyy-MM-dd HH:mm:ss")}"</#if> /> 
             </td>
            </tr>
            
             <tr>
             <td>
               <label art='label' for='duetime' required='true'><@s.message "milestone.view.endtime"/></label>
              </td>
             <td>
              <input id="duetime" name="duetime" type="text" selectMode=1 art="datetimer" mintime="{starttime}" 
              <#if milestone.duetime??> value="${milestone.duetime?string("yyyy-MM-dd HH:mm:ss")}"</#if> />
             </td>
            </tr>
            
             <tr>
              <td>
               <label art='label' for='owner' required='true'><@s.message "milestone.view.owner"/></label>
              </td>
              <td>
                <input id="owner_text" name="owner_text" type="text" art="combobox" emptyText="<@s.message "milestone.view.owner"/>"
                           required="true" value="${milestone.owner}"/>
              </td>
            </tr>
             <tr>
              <td>
               <label art='label' for='description' required='true'><@s.message "milestone.view.description"/></label>
              </td>
              <td>
                <textarea id="description" name="description"  art="textbox"  maxlength="250" width="300px" height="100px" style="resize: none" emptyText="<@s.message "milestone.view.description"/>"
                           required="false">${milestone.description}</textarea>
              </td>
            </tr>
            <tr>
                <td></td>
                <td>
                    <button id="btn_submit" type="submit">
                        <span><span><@s.message "operation.save"/></span></span>
                    </button>
                </td>
            </tr> 
            <tr id='tr_form_msg'>
                <td colspan="2"></td>
            </tr>
        </table>
    </form>
 </div>

</@override>
<@override name="scripts">
<script type="text/javascript">
      var  code ='${project.code}';

</script>

<script type="text/javascript" src="<@s.url '/resources/scripts/project/milestone/edit.js'/>"></script>
</@override>
<@extends name="/common/projectlayout1.1.ftl" current="milestone" title='${title}' code='${project.code}'></@extends>